<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'} 

<div class="container">
	
    <div class="main">
    
    
    <ul class="breadcrumb">
          <li><a href="{SITE_URL}">首页</a> <span class="divider">/</span></li>
          <li><a href="{url("?module=group")}">小组</a> <span class="divider">/</span></li>
          <li><a href="{url("?module=group&groupid=$groupid")}">{$groupid}</a> <span class="divider">/</span></li>
          <li class="active">{$title}</li>
        </ul>
  
        <style type="text/css">
			.title{
				font-size:18px; text-align:center; font-weight:bold; line-height:40px; 
			}
			.attr{ 
				font-size:13px; line-height:30px; text-align:center;
			}
			.attr font{
				color:#ddd;
			}
			.desc{
				padding:10px; margin:10px 0 30px 0; font-family:楷体_GB2312;
			}
		</style>
        
        <p class="title">{$title}</p>
        <p class="attr">
        	<span>{$updatetime}</span> <font>┊</font>
             作者：{if $author}{$author}{else}{$userid}{/if} <font>┊</font>
             来源：{if $copyfrom}{$copyfrom}{else} {SITE_URL} {/if} <font>┊</font>
             浏览次数：<span id="hits">0</span> <font>┊</font> 
             
        </p>
        
        
        <p class="desc">{$description}</p>
        
        
        <!--<style>
			.ad{
				height:auto; overflow:hidden; clear:both; margin:-20px 0 10px 0;
			}
			.ad .col{
				width:300px; height:250px; float:left; display:inline; background:#eee; margin-right:10px; line-height:250px; text-align:center;
			}
			
		</style>
        <div class="ad">
        	<div class="col">
            	广而告之
            </div>
        	<div class="col">
            	广而告之
            </div>
        </div>-->
        
        <style type="text/css">
			.content{
				font-size:13px;
			}
			.content p{
				text-indent:24px;
			}
		</style>
        <div class="content">
        {$content}
        
        <br/>
        <!--<a href="?module=digg&action=support&topicid={$topicid}" class="button"><i class="icon-thumbs-up"></i>顶一下</a>
        <a href="?module=digg&action=against&topicid={$topicid}" class="button"><i class="icon-thumbs-down"></i>踩一下</a>-->
                
        {if check_priv($topicid,$_userid)}
       	
        <a href="?module=digg&action=support&keyid=group_topic-topicid-{$topicid}" class="button"><i class="icon-thumbs-up"></i>顶一下</a>
        <a href="?module=digg&action=against&keyid=group_topic-topicid-{$topicid}" class="button"><i class="icon-thumbs-down"></i>踩一下</a>
        <a href="?module=group&file=topic&action=edit&topicid={$topicid}" class="button"><i class="icon-edit"></i>修改</a>
        <a href="javascript:if(confirm('确定要删除吗？')) location='?module=group&file=topic&action=cancel&topicid={$topicid}'" class="button button-danger"><i class="icon-remove icon-white"></i>删除</a>
                
  
        <!--&gt; <a href="?module=group&file=topic&action=lock&topicid={$topicid}">禁止回应</a> 
        &gt; <a href="?module=group&file=topic&action=unlock&topicid={$topicid}">允许回应</a> -->
    
       <!-- &gt; <a href="?module=group&file=topic&action=sticky&topicid={$topicid}">置顶</a>    
        &gt; <a href="?module=group&file=topic&action=unsticky&topicid={$topicid}">取消置顶</a> -->     
      
        {/if}
        
        <br/>
        <br/>
        转载请注明来源：<a href='http://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}'>http://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}</a>
        </div>
        
        <br/>
        {if $keywords}
      		<div><strong>关键词：</strong>{$keywords}</div>
      	{/if}
        
        
         
        {php list($mod, $field, $value) = array('group_topic', 'topicid', $topicid);}
        {template 'load.html','comment'}
        
        
   
    
    <p>
        {if isset($MODULE[error_report])}<a href="javascript:$('#errors').submit();">[错误报告]</a>{/if} 
        {if isset($MODULE[mail])}<a href="javascript:$('#sendmail').submit();">[推荐]</a>{/if} 
        <a href="member/collect.php?contentid={$contentid}&action=add">[收藏]</a>
        <a href="javascript:window.print();">[打印]</a> <a href="javascript:window.close();">[关闭]</a> 
        <a href="{SITE_URL}{$url}#top">[返回顶部]</a> 
    </p>
    </div>
    
    
    <script type="text/javascript">
		/*$(function(){
			$(window).scroll(function(){ 
				if($(window).scrollTop()<165){
					$('.aside').removeClass('fixed');
				}
				
				// 不给ie6效果
				if($(window).scrollTop()>165&&!($.browser.msie&&$.browser.version=='6.0')){
					$('.aside').addClass('fixed');
				}
			});
		})*/
	</script>
    
    <style type="text/css">
		/* 解决固定层在IE6下闪的问题 */
		*html{
			background-image:url(about:blank);
			background-attachment:fixed;
		}
		.fixed{
			position:absolute; 
			margin-left:10px;
			position:fixed; 
			clip:rect(0 100% 100% 0);
			_position:absolute;
			
			/* 底部 */
			top:0px;
		}
	</style>
    <div class="aside">
    	
        <div class="mod">

            <div class="body">
            	<div class="well">
                	{get sql="select * from table_group where groupid = $groupid" rows="1"}
                 		<img src="{$r[thumb]}"/><br/>
                        <a href="{url("?module=group&groupid=$groupid")}">{$r[title]}</a><br/>
                        {$r[description]}<br/>
                       <a href="{url("?module=group&action=join&groupid=$groupid")}" class="button"><i class="icon-plus"></i>申请加入</a>
                    {/get}
                	
                </div>
            </div>
        </div>
        
        <div class="mod">
            <div class="head">永久链接</div>
            <div class="body users">
          		本页永久链接:<a href="{url("?module=group&groupid=$groupid")}" target="_self">{url("?module=group&groupid=$groupid")}</a>
            </div>
        </div>
        
        <div class="mod">
        	<div class="head">热门话题&nbsp;<small>hot articles</small></div>
            <ul class="body">
              {get sql="select title,url,hits from table_group_topic where `groupid` = $groupid and status = 99 order by hits desc" rows="10"}
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></li>
              {/get}
              </ul>
        </div>
       
    </div>
</div>

<script language="javascript" src="?module={$module}&file={$file}&action=count&topicid={$topicid}"></script>
{template 'footer.html'}